package com.gz.action.impl;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.gz.action.Action;
import com.gz.myAnnotation.Controller;
import com.gz.myAnnotation.RequestMapping;
import com.gz.myAnnotation.Result;
import com.gz.pojo.Animal;
import com.gz.pojo.Dog;
@Controller(name="/dog")
public class DogAction implements Action {


	@Override 
	@RequestMapping(results={@Result(name="success",value="/view/dogSuccess.jsp"),@Result(name="faile",value="/view/dogFaile.jsp")})
	public String execute(HttpServletRequest request,Animal animal,Map<String, String> forwardMap) {
		Dog dog=(Dog)animal;
		return dog.toString();
	}
	
	

}
